package com.lichuang.fruitvarietysm.goods.service.impl;

import com.lichuang.fruitvarietysm.goods.entity.Attribute;
import com.lichuang.fruitvarietysm.goods.entity.CategoryAttributeDTE;
import com.lichuang.fruitvarietysm.goods.mapper.AttributeMapper;
import com.lichuang.fruitvarietysm.goods.service.IAttributeService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author shuaihang
 * @since 2019-05-25
 */
@Service
public class AttributeServiceImpl extends ServiceImpl<AttributeMapper, Attribute> implements IAttributeService {

    @Autowired
   private AttributeMapper attributeMapper;

    @Override
    public List<CategoryAttributeDTE> sCategoryAttributeDTES(Integer category_id, Integer pid) {
        return attributeMapper.sCategoryAttributeDTES(category_id,pid);
    }
}
